//
//  FootprintView.h
//  cocoapodText
//
//  Created by apple on 16/9/15.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef FootprintView_h
#define FootprintView_h


#endif /* FootprintView_h */
#import "CommonTool.h"
//导入时需要手动打上，系统没有提示
#import "Charts-Swift.h"
#import "NirKxMenu.h"
#import <UIKit/UIKit.h>
#import "MyUIDatePicker.h"
#import "queryDataInfo.h"
#import "areaTableRadioCell.h"
#import "queryDataTableCell.h"

@class FootprintView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol GYFootprintViewDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onSetData:(FootprintView *)footprintView;
-(void)onQueryChartData:(FootprintView*)footprintView esCode:(NSString *)esCode xslx:(NSString *)xslx selectTime:(NSString *)selectTime orgid:(NSString *)orgid area:(NSString *)area;
@end

@interface FootprintView : UIView<ChartViewDelegate>
//全局背景
@property(nonatomic,strong)UIView *AllBackView;
//左侧菜单
@property(nonatomic,strong)UITableView *GYMeunTableView;
///右侧查询
//右侧全背景
@property(nonatomic,strong)UIView *rightAllBackView;
//右侧滑动背景
@property(nonatomic,strong)UIScrollView *chartAndQueryTableBack;
//表格
@property(nonatomic,strong)UITableView *queryTableView;
//表格头部
@property(nonatomic,strong)UIView *queryTabletopView;
//表格横向滑动
@property(nonatomic,strong)UIScrollView *queryTableBack;
//图表
@property(nonatomic,strong)UILabel *chartTitle;
@property(nonatomic,strong)BubbleChartView *bubbleChart;

//时间选择
@property(nonatomic,strong)MyUIDatePicker *datePicker;
@property(nonatomic)BOOL is_picker_show;
@property(nonatomic,strong)UIView *pickerOverlay;

@property(nonatomic,strong)UILabel *endTimeMenu;

//选中的地区
@property(nonatomic,retain)NSString *currentAreaName;
//年份
@property(nonatomic,retain)NSString *selectTime;
//类型
@property(nonatomic,retain)NSString *xslxType;
//ID
@property(nonatomic,retain)NSString *orgId;

#pragma mark - 数据
#pragma mark 预警比列饼图数据
@property(nonatomic,retain)NSMutableArray *xValsBubble;
@property(nonatomic,retain)NSMutableArray *yValsBubble;
@property(nonatomic,retain)NSString *title;

#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<GYFootprintViewDelegate> delegate;

#pragma mark - 公共方法
-(void)setData;
-(void)setBubbleChartData;
-(void)setGYMenuTableData:(NSArray *)array;
-(void)setInitCondition;


@end
